package com.lsh.container;

import org.springframework.web.context.request.async.DeferredResult;

import java.util.concurrent.ConcurrentHashMap;

/**
 * @author Administrator
 * @date 2019/10/30 0:37
 */
public class CommentContainer {

    private static ConcurrentHashMap<String, DeferredResult> userPoll = new ConcurrentHashMap<>(); //创建一个线程安全的hashmap存放用户的的轮询状态

    public ConcurrentHashMap<String, DeferredResult> getCommentContainer() {
        return userPoll;
    }

}
